package com.myproject.myblogserver.dto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import lombok.Data;

@Data
public class FileUploadResultDto {
    private List<String> errFiles = new ArrayList<>();
    private Map<String, String> succMap = new HashMap<>();

    public void addErrorFile(String filename) {
        errFiles.add(filename);
    }

    public void addSuccessFile(String filename, String filepath) {
        succMap.put(filename, filepath);
    }
}